//
//  Activity.m
//  豆瓣HW
//
//  Created by dllo on 15/11/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Activity.h"


@implementation Activity


- (void)dealloc
{
    [_adapt_url release];
    [_address release];
    [_album release];
    [_alt release];
    [_begin_time release];
    [_can_invite release];
    [_category release];
    [_category_name release];
    [_content release];
    [_end_time release];
    [_geo release];
    [_has_ticket release];
    [_activityId release];
    [_image release];
    [_image_hlarge release];
    [_image_lmobile release];
    [_loc_id release];
    [_loc_name release];
    [_owner release];
//    [_participant_count release];
    [_photos release];
    [_title release];
//    [_wisher_count release];
    [_finalImage release];
    [super dealloc];
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"id"]) {
        self.activityId = value;
    }
    if ([key isEqualToString:@"image"]) {
        NSString *str = [value stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
        self.image = str;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}



@end
